;------------------------------------------------------------------------------------------------
[wpn_g36]:identity_immunities,weapon_probability,default_weapon_params,wpn_g36_sounds
GroupControlSection                      = spawn_group
$npc                                     = on
$prefetch                                = 8
$spawn                                   = "weapons\g36"
scheduled                                = off
cform                                    = skeleton

class                                    = WP_AK74
slot                                     = 2
animation_slot                           = 2
ef_main_weapon_type                      = 2
ef_weapon_type                           = 7
hand_dependence                          = 1
single_handed                            = 0

default_to_ruck                          = false
sprint_allowed                           = true

inv_grid_height                          = 2
inv_grid_width                           = 5
inv_grid_x                               = 20
inv_grid_y                               = 60
inv_name                                 = st_wpn_g36
inv_name_short                           = st_wpn_g36
description                              = st_wpn_g36_descr

kind                                     = w_rifle
inv_weight                               = 3.77
cost                                     = 43880
repair_type                              = rifle_5
weapon_class                             = assault_rifle

hud                                      = wpn_g36_hud
visual                                   = dynamics\weapons\wpn_g36\wpn_g36.ogf
position                                 = -0.026, -0.132, 0.0
orientation                              = 0, -8, 0
fire_point                               = 0.0, 0.21, 0.58
fire_point2                              = 0.0, 0.21, 0.71
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.26, -0.11, 0.25
strap_orientation                        = -15, -9, 110
ph_mass                                  = 4

flame_particles                          = weapons\generic_weapon05
smoke_particles                          = weapons\generic_shoot_00
grenade_flame_particles                  = weapons\generic_weapon01

shell_point			                     = 0.0, 0.21, 0.13
shell_dir			                     = 0.0, 0.0, 0.4
shell_particles			                 = weapons\556x45

light_disabled                           = false
light_color                              = 0.6, 0.5, 0.3
light_range                              = 5
light_time                               = 0.2
light_var_color                          = 0.05
light_var_range                          = 0.5

upgrades                                 = up_gr_firstab_g36, up_gr_seconab_g36, up_gr_thirdab_g36, up_gr_fourtab_g36, up_gr_fourtcd_g36, up_gr_fourtef_g36
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_g36
upgr_icon_x                              = 300
upgr_icon_y                              = 700
upgr_icon_width                          = 300
upgr_icon_height                         = 100

fire_modes                               = 1, 3, -1
ammo_class                               = ammo_5.56x45_fmj, ammo_5.56x45_fmj_bad, ammo_5.56x45_fmj_verybad, ammo_5.56x45_ss190, ammo_5.56x45_ss190_bad, ammo_5.56x45_ss190_verybad, ammo_5.56x45_ap, ammo_5.56x45_ap_bad, ammo_5.56x45_ap_verybad
ammo_elapsed                             = 30
ammo_mag_size                            = 30
startup_ammo                             = 90

scope_status                             = 0
scope_texture                            = none
scope_zoom_factor                        = 0

silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 224
silencer_y                               = 18
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5
silencer_smoke_particles                 = weapons\generic_shoot_00

grenade_class                            = ammo_m209, ammo_m209_bad, ammo_m209_verybad
grenade_launcher_name                    = wpn_addon_grenade_launcher_m203
grenade_launcher_status                  = 2
grenade_launcher_x                       = 127
grenade_launcher_y                       = 33
launch_speed                             = 0

hit_impulse                              = 25
hit_power                                = 0.5, 0.5, 0.5, 0.5
hit_type                                 = fire_wound
fire_distance                            = 1000
bullet_speed                             = 915
rpm                                      = 750
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  3.0
zoom_enabled                             = true
zoom_rotate_time                         = 0.2
reload_dof                               = 0.0, 0.5, 5, 2
control_inertion_factor = 1.0f
crosshair_inertion                       = 4.6
fire_dispersion_base                     = 0.29
fire_dispersion_condition_factor         = 0.001

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.88
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.09
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0009
condition_shot_dec                       = 0.0007

cam_return                               = 0
cam_relax_speed                          = 10
cam_dispersion                           = 0.556
cam_dispersion_frac                      = 1.0
cam_dispersion_inc                       = 0.0675
cam_max_angle                            = 50.0
cam_max_angle_horz                       = 50.0
cam_step_angle_horz                      = 0.95
zoom_cam_relax_speed                     = 10
zoom_cam_dispersion                      = 0.515
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.0525
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 50.0
zoom_cam_step_angle_horz                 = 0.9

PDM_disp_accel_factor                    = 2.5
PDM_disp_base                            = 1.18
PDM_disp_crouch                          = 1.0
PDM_disp_crouch_no_acc                   = 1.0
PDM_disp_vel_factor                      = 2.5

cam_relax_speed_ai                       = 120.75
zoom_cam_relax_speed_ai                  = 360
holder_fov_modifier                      = 1.0
holder_range_modifier                    = 1.85
min_radius                               = 0
max_radius                               = 500
hit_probability_gd_novice                = 1.00
hit_probability_gd_stalker               = 1.00
hit_probability_gd_veteran               = 1.00
hit_probability_gd_master                = 1.00

kill_msg_x                               = 0
kill_msg_y                               = 28
kill_msg_width                           = 84
kill_msg_height                          = 28


[wpn_g36_hud]:hud_base,hud_low_interia
item_visual                              = anomaly_weapons\wpn_g36\wpn_g36_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

item_position                            = 0, 0, 0
item_orientation                         = 0, 0, 0

hands_position                           = -0.034, -0.2, 0.14
hands_position_16x9                      = -0.034, -0.2, 0.14
hands_orientation                        = 2, 2, 0
hands_orientation_16x9                   = 2, 2, 0

aim_hud_offset_pos                       = -0.12225,0.02719,-0.3
aim_hud_offset_pos_16x9                  = -0.12225,0.02719,-0.3
aim_hud_offset_rot                       = 0.0415,0.0335,0
aim_hud_offset_rot_16x9                  = 0.0415,0.0335,0

gl_hud_offset_pos                        = -0.12327, -0.062, -0.27
gl_hud_offset_pos_16x9                   = -0.12327, -0.062, -0.27
gl_hud_offset_rot                        = -0.09, 0.0351, -0.0039
gl_hud_offset_rot_16x9                   = -0.09, 0.0351, -0.0039

lean_hud_offset_pos                      = 0, 0, 0
lean_hud_offset_rot                      = 0, 0, 0

anm_hide                                 = g36k_holster
anm_hide_g                               = g36k_holster_grenade, idle_grenade
anm_hide_w_gl                            = g36k_holster_w_gl, idle_w_gl
anm_idle                                 = g36k_idle
anm_idle_aim                             = g36k_idle_aim
anm_idle_aim_moving                      = g36k_idle_moving, idle, 0.75
anm_idle_aim_moving_crouch               = g36k_idle_moving, idle, 0.7
anm_idle_g                               = g36k_idle_grenade, idle_grenade
anm_idle_g_aim                           = g36k_idle_aim_grenade, idle_grenade
anm_idle_moving                          = g36k_idle_moving
anm_idle_moving_crouch                   = g36k_idle_crouch
anm_idle_moving_crouch_g                 = g36k_idle_crouch_grenade, idle_grenade
anm_idle_moving_crouch_g_aim             = g36k_idle_moving_grenade, idle_grenade, 0.7
anm_idle_moving_crouch_w_gl              = g36k_idle_crouch_w_gl, idle_w_gl
anm_idle_moving_crouch_w_gl_aim          = g36k_idle_moving_w_gl, idle_w_gl, 0.7
anm_idle_moving_g                        = g36k_idle_moving_grenade, idle_grenade
anm_idle_moving_g_aim                    = g36k_idle_moving_grenade, idle_grenade, 0.75
anm_idle_moving_w_gl                     = g36k_idle_moving_w_gl, idle_w_gl
anm_idle_moving_w_gl_aim                 = g36k_idle_moving_w_gl, idle_w_gl, 0.75
anm_idle_sprint                          = g36k_idle_sprint
anm_idle_sprint_g                        = g36k_idle_sprint_grenade, idle_grenade
anm_idle_sprint_w_gl                     = g36k_idle_sprint_w_gl, idle_w_gl
anm_idle_w_gl                            = g36k_idle_w_gl, idle_w_gl
anm_idle_w_gl_aim                        = g36k_idle_aim_w_gl, idle_w_gl
anm_reload                               = g36k_reload, reload
anm_reload_empty                         = g36k_reload_empty, reload_empty
anm_reload_empty_w_gl                    = g36k_reload_empty_w_gl, reload_empty_w_gl
anm_reload_g                             = g36k_reload_grenade, reload_grenade
anm_reload_w_gl                          = g36k_reload_w_gl, reload_w_gl
anm_shots                                = g36k_shoot, shoot
anm_shots_g                              = g36k_shoot_grenade, shoot_grenade
anm_shots_w_gl                           = g36k_shoot_w_gl, shoot_w_gl
anm_show                                 = g36k_draw
anm_show_g                               = g36k_draw_grenade, idle_grenade
anm_show_w_gl                            = g36k_draw_w_gl, idle_w_gl
anm_switch                               = g36k_switch_off, switch_off
anm_switch_g                             = g36k_switch_on, switch_on

shell_bone                               = gilza
shell_dir                                = 0, 1, 0
shell_point                              = 0, 0, 0

fire_bone                                = muzzle
fire_bone2                               = muzzle_gl
fire_point                               = 0, 0, 0
fire_point2                              = 0, 0, 0

freelook_z_offset_mul					 = 0.1

;------------------------------------------------------------------------------------------------
[wpn_g36_camo]:wpn_g36
inv_grid_x                               = 25
inv_name                                 = st_wpn_g36_camo
inv_name_short                           = st_wpn_g36_camo

cost                                     = 48850

hud                                      = wpn_g36_sk1_hud
visual                                   = dynamics\weapons\wpn_g36\wpn_g36_sk1.ogf

installed_upgrades                       = up_thirda_g36

rpm                                      = 765

fire_dispersion_base                     = 0.26

misfire_start_condition                  = 0.7 ;  0.8
misfire_start_prob                       = 0.004
misfire_end_condition                    = 0.08
misfire_end_prob                         = 0.04

condition_queue_shot_dec                 = 0.0010
condition_shot_dec                       = 0.0008


[wpn_g36_sk1_hud]:wpn_g36_hud
item_visual                              = anomaly_weapons\wpn_g36\wpn_g36_sk1_hud.ogf

;------------------------------------------------------------------------------------------------
[wpn_g36k]:wpn_g36,wpn_g36_sounds
inv_grid_height                          = 2
inv_grid_width                           = 5
inv_grid_x                               = 20
inv_grid_y                               = 62
inv_name                                 = st_wpn_g36k
inv_name_short                           = st_wpn_g36k
description                              = st_wpn_g36k_descr

inv_weight                               = 3.3
cost                                     = 33860
weapon_class                             = assault_rifle

hud                                      = wpn_g36k_hud
visual                                   = dynamics\weapons\wpn_g36\wpn_g36k.ogf
fire_point                               = 0.0, 0.21, 0.8
fire_point2                              = 0.0, 0.14, 0.6

upgrades                                 = up_gr_firstab_g36k, up_gr_seconab_g36k, up_gr_thirdab_g36k, up_gr_fourtab_g36k, up_gr_fourtcd_g36k, up_gr_fourtef_g36k

scope_status                             = 0
scope_texture                            = 
scope_zoom_factor                        = 45

silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 219
silencer_y                               = 13
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5

grenade_launcher_status                  = 0

rpm                                      = 750
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  3.0
zoom_enabled                             = true
zoom_rotate_time                         = 0.2
control_inertion_factor = 1.0f
crosshair_inertion                       = 4.8
fire_dispersion_base                     = 0.25

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.92
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.11
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0009
condition_shot_dec                       = 0.0008

cam_return                               = 0
cam_relax_speed                          = 10
cam_dispersion                           = 1.2
cam_dispersion_frac                      = 1.0
cam_dispersion_inc                       = 0.0675
cam_max_angle                            = 50.0
cam_max_angle_horz                       = 50.0
cam_step_angle_horz                      = 0.95
zoom_cam_relax_speed                     = 10
zoom_cam_dispersion                      = 0.9
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.0525
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 50.0
zoom_cam_step_angle_horz                 = 0.9

PDM_disp_accel_factor                    = 2.5
PDM_disp_base                            = 1.18
PDM_disp_crouch                          = 1.0
PDM_disp_crouch_no_acc                   = 1.0
PDM_disp_vel_factor                      = 2.5

cam_relax_speed_ai                       = 120.75
zoom_cam_relax_speed_ai                  = 360


[wpn_g36k_hud]:wpn_g36_hud
item_visual                              = anomaly_weapons\wpn_g36\wpn_g36k_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

aim_hud_offset_pos                       = -0.12196,0.05765,-0.35
aim_hud_offset_pos_16x9                  = -0.12196,0.05765,-0.35
aim_hud_offset_rot_16x9                  = 0.0415,0.0335,0

;------------------------------------------------------------------------------------------------
[wpn_g36_nimble]:wpn_g36
$spawn                                   = "weapons\wpn_g36_nimble"


[wpn_g36_sk2_hud]:wpn_g36_hud
item_visual                              = anomaly_weapons\wpn_g36\wpn_g36_sk2_hud.ogf


[wpn_g36k_sk1_hud]:wpn_g36_hud
item_visual                              = anomaly_weapons\wpn_g36\wpn_g36k_sk1_hud.ogf

aim_hud_offset_pos                  	 = -0.121920, 0.057350, -0.35
aim_hud_offset_rot                  	 = 0.041500, 0.033500, 0
aim_hud_offset_pos_16x9                  = -0.121920, 0.057350, -0.35
aim_hud_offset_rot_16x9                  = 0.041500, 0.033500, 0

